$OpenBSD: patch-Makefile_am,v 1.4 2014/09/23 13:44:03 dcoppa Exp $
--- Makefile.am.orig	Thu Jul 31 21:02:28 2014
+++ Makefile.am	Tue Sep 23 09:40:42 2014
@@ -47,6 +47,9 @@ deadbeef_SOURCES =\
 sdkdir = $(pkgincludedir)
 sdk_HEADERS = deadbeef.h
 
+# Fix 'undefined symbol' errors when loading plugins
+deadbeef_LDFLAGS = $(LDFLAGS) -Wl,--export-dynamic
+
 deadbeef_LDADD = $(LDADD) $(DEPS_LIBS) $(ICONV_LIB) $(DL_LIBS) -lm -lpthread $(INTL_LIBS) plugins/libparser/libparser.a
 
 AM_CFLAGS = $(DEPS_CFLAGS) -std=c99
